package com.example.storagemodule

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import kotlinx.android.synthetic.main.activity_i_f.*
import java.io.BufferedOutputStream

class IFActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_i_f)
    }

    fun save(view: View) {
        val assetManager=assets
        val inputStream=assetManager.open("apple_pic.png")
        val outputStream = openFileOutput("logo.png", MODE_PRIVATE)
        val bufferedOutputStream=BufferedOutputStream(outputStream)
//        inputStream.read
    }
    fun read(view: View) {}
}